<template>
  <el-tabs v-model="activeName" class="main-container" @tab-click="handleClick">
    <el-tab-pane label="在线用户" name="first">
      <sys-online-user-list>
      </sys-online-user-list>
    </el-tab-pane>
    <el-tab-pane label="日活统计" name="second">
      <DAU></DAU>
    </el-tab-pane>
  </el-tabs>
</template>

<script lang="ts" setup>
import {ref} from 'vue'

import type {TabsPaneContext} from 'element-plus'
import SysOnlineUserList from "@/views/system/components/UserOnline/sysOnlineUserList.vue";
import DAU from "@/views/system/components/UserOnline/DAU.vue"

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<style scoped>
.main-container {
  height: 90vh;
}

.main-container > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
</style>
